i2c: bcm2835: Use dev_dbg logging on transfer errors
authorNoralf Trønnes <noralf@tronnes.org>
Mon, 19 Sep 2016 15:19:41 +0000 (17:19 +0200)
committerpopcornmix <popcornmix@gmail.com>
Mon, 20 Feb 2017 20:28:40 +0000 (20:28 +0000)
commit53b30fee765cf8305a358930486060c438539243
tree8d3edb14a188e4c15f6e3217aa64cd0d5c0b7f11
parent7a15cde822918a1acc6c580b5eda6ccbf1957d23
i2c: bcm2835: Use dev_dbg logging on transfer errors

Writing to an AT24C32 generates on average 2x i2c transfer errors per
32-byte page write. Which amounts to a lot for a 4k write. This is due
to the fact that the chip doesn't respond during it's internal write
cycle when the at24 driver tries and retries the next write.
Only a handful drivers use dev_err() on transfer error, so switch to
dev_dbg() instead.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
drivers/i2c/busses/i2c-bcm2835.c